@extends('layouts.agent')
@section('content')
    <div id="ribbon"><ol class="breadcrumb"><li>内容区</li></ol></div>
    <div class="content_wrapper">
        <aside>
            <header><i class="fa fa-fw fa-file"></i>系统设置</header>
            <section>
                <div class="row">
                    <div class="col-sm-12">
                        <form id="dataForm" onsubmit="return false;" class="form-horizontal" role="form">
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><span class="red">*</span>店铺名</label>
                                <div class="col-sm-3">
                                    <input type="text" name="shop_name" value="{{$row['shop_name']}}" class="form-control" maxlength="20">
                                </div>
                            </div>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><span class="red">*</span>联系人</label>
                                <div class="col-sm-3">
                                    <input type="text" name="contact" value="{{$row['contact']}}" class="form-control" maxlength="20">
                                </div>
                            </div>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><span class="red">*</span>联系方式</label>
                                <div class="col-sm-3">
                                    <input type="text" name="tel" value="{{$row['tel']}}" class="form-control" maxlength="20">
                                </div>
                            </div>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">地址</label>
                                <div class="col-sm-3">
                                    <input type="text" name="address" value="{{$row['address']}}" class="form-control" maxlength="50">
                                </div>
                            </div>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"> </label>
                                <div class=" col-sm-10">
                                    <input type="button" class="btn btn-primary" value="保存" id="saveBtn" onclick="save()" />&nbsp;&nbsp;&nbsp;
                                    {{--<input type="button" class="btn btn-default" value="返回" onclick="history.go(-1)" />--}}
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </section>
        </aside>
    </div>
    <script>
        function save() {
            $.post('', $('#dataForm').serialize(), function (res) {
                layer.msg(res.info, {icon: res.status});
            });
        }
    </script>
@endsection